package basic;

import java.util.Scanner;

public class homework {

	public static void main(String[] args) {
		int n = 58;
		System.out.println("周数" + n / 7 + "剩余的天数" + n % 7);

		Scanner scanner = new Scanner(System.in);

		System.out.println("请输入一个整数：");

		int i = scanner.nextInt();

		System.out.println((int) ((i * 10 + 5) / 2 + 3.14159));

		System.out.println("请输入第一个整数：");
		int i1 = scanner.nextInt();
		System.out.println("请输入第二个整数：");
		int i2 = scanner.nextInt();
		System.out.println("请输入第三个整数：");
		int i3 = scanner.nextInt();

		int z = i1 > i2 ? i1 : i2;
		z = z > i3 ? z : i3;

		System.out.println("最大值：" + z);
		System.out.println("请输入第一个整数：");
		int i4 = scanner.nextInt();
		System.out.println("请输入第二个整数：");
		int i5 = scanner.nextInt();

		System.out.println("交换前i4=" + i4 + "i5=" + i5);
		int i6 = i4;

		i4 = i5;

		i5 = i6;

		System.out.println("交换后i4=" + i4 + "i5=" + i5);

	}

}
